export const moduleUser = {
    namespaced: true,
    state: () => ({
        showActiveLogin: true,//登录注册页，是否显示登录激活
        userCenterActiveIdx:0 //个人中心显示激活页签索引
    }),
    getters: {
        showActiveLogin: (state) => {
            return state.showActiveLogin;
        },
        userCenterActiveIdx: (state) => {
            return state.userCenterActiveIdx;
        }
    },
    mutations: {
        activeLogin(state, isOn) {
            state.showActiveLogin = isOn;
        },
        changeUserCenterActiveIdx(state,idx){
            state.userCenterActiveIdx = idx;
        }
    }
};
